import request from '@/utils/request'
import request1 from '@/utils/request1'

// 新增医院
export function hospitalAdd(query) {
  return request({
    url: '/com.mmk.reservation.api.AdminHospitalProvider/1.0.0/createHospital.html',
    method: 'post',
    data: query
  })
}

// 新增医院
export function addHospital(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupHospitalProvider/1.0.0/insertHospital.html',
    method: 'post',
    data: query
  })
}

// 编辑医院
export function updateHospital(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupHospitalProvider/1.0.0/updateHospital.html',
    method: 'post',
    data: query
  })
}

// 根据地址获取经纬度
export function getGPS(query) {
  return request({
    url: '/com.mmk.reservation.api.AdminHospitalProvider/1.0.0/getGPS.html',
    method: 'post',
    data: query
  })
}

// 获取经纬度
export function getLat(query) {
  return request1({
    url: 'getLat',
    method: 'get',
    params: query
  })
}
